package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.OrderDetailResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;

import java.util.HashMap;


/*
*  订单详情接口
* */


public class OrderDetailApi extends AbsRequest<OrderDetailApi.OrderDetailParams, OrderDetailResult> {

    public OrderDetailApi(OrderDetailParams orderDetailParams, Listener<OrderDetailResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getOrderDetailUrl(), orderDetailParams, listener, errorListener, OrderDetailResult.class);
    }

    public static class OrderDetailParams extends BaseParams {
        public OrderDetailParams(HashMap<String, String> hm){
            super(hm);
        }
        public OrderDetailParams(String orderId) {

                put("ORDER_ID", orderId);
        }
    }


}
